import request from '@/utils/request'

// 查询流程大类配置列表
export function listProcess(query) {
    return request({
        url: '/flow/Process/list',
        method: 'get',
        params: query
    })
}

// 查询流程大类配置详细
export function getProcess(id) {
    return request({
        url: '/flow/Process/' + id,
        method: 'get'
    })
}

// 新增流程大类配置
export function addProcess(data) {
    return request({
        url: '/flow/Process',
        method: 'post',
        data: data
    })
}

// 修改流程大类配置
export function updateProcess(data) {
    return request({
        url: '/flow/Process',
        method: 'put',
        data: data
    })
}

// 删除流程大类配置
export function delProcess(id) {
    return request({
        url: '/flow/Process/' + id,
        method: 'delete'
    })
}
